package com.ocom.mqsimple.business.facecheck.impl;


import com.ocom.mqsimple.business.facecheck.FaceCheckProductService;
import com.ocom.mqsimple.utils.FaceCheckProductUitl;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class FaceCheckProductServiceImpl implements FaceCheckProductService {
	private final Logger log = LoggerFactory.getLogger(FaceCheckProductServiceImpl.class);

	@Autowired
	private FaceCheckProductUitl faceCheckProductUitl;

	/**
	 * 处理人员图片
	 */
	public void handle(String msg) {

		log.info(" FaceCheck-mq-开始【{}】",msg);
		//消息队列调用减库存接口  优先级越高越先执行完

		faceCheckProductUitl.faceCheckSend(msg,15);

        log.info(" FaceCheck-mq-完成【{}】",msg);

	}

}
